
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    Performance: '',
    TraceRun_list: [
      {"code":30,"text1":23.54,"text2":27.04,"text3":53.24,"text4":63.24,"text5":255.00,"text6":305.00},
      {"code":29.5,"text1":23.60,"text2":27.10,"text3":53.35,"text4":63.40,"text5":255.83,"text6":306.50},
      {"code":29,"text1":23.67,"text2":27.17,"text3":53.46,"text4":63.57,"text5":256.66,"text6":308.00},
      {"code":28.5,"text1":23.74,"text2":27.24,"text3":53.57,"text4":63.74,"text5":257.50,"text6":309.50},
      {"code":28,"text1":23.80,"text2":27.30,"text3":53.68,"text4":63.90,"text5":258.33,"text6":311.10},
      {"code":27.5,"text1":23.87,"text2":27.37,"text3":53.79,"text4":64.07,"text5":259.16,"text6":312.70},
      {"code":27,"text1":23.94,"text2":27.44,"text3":53.90,"text4":64.24,"text5":260.00,"text6":314.30},
      {"code":26.5,"text1":24.00,"text2":27.50,"text3":54.01,"text4":64.40,"text5":261.00,"text6":315.96},
      {"code":26,"text1":24.07,"text2":27.57,"text3":54.12,"text4":64.57,"text5":262.00,"text6":317.63},
      {"code":25.5,"text1":24.14,"text2":27.64,"text3":54.24,"text4":64.74,"text5":263.00,"text6":319.30},
      {"code":25,"text1":24.22,"text2":27.72,"text3":54.40,"text4":64.96,"text5":264.00,"text6":321.10},
      {"code":24.5,"text1":24.30,"text2":27.80,"text3":54.57,"text4":65.18,"text5":265.00,"text6":322.90},
      {"code":24,"text1":24.38,"text2":27.88,"text3":54.74,"text4":65.40,"text5":266.00,"text6":324.70},
      {"code":23.5,"text1":24.46,"text2":27.96,"text3":54.90,"text4":65.62,"text5":267.00,"text6":326.53},
      {"code":23,"text1":24.55,"text2":28.05,"text3":55.07,"text4":65.84,"text5":268.00,"text6":328.36},
      {"code":22.5,"text1":24.64,"text2":28.14,"text3":55.24,"text4":66.06,"text5":269.00,"text6":330.20},
      {"code":22,"text1":24.74,"text2":28.24,"text3":55.40,"text4":66.28,"text5":270.16,"text6":332.30},
      {"code":21.5,"text1":24.84,"text2":28.34,"text3":55.57,"text4":66.51,"text5":271.33,"text6":334.40},
      {"code":21,"text1":24.94,"text2":28.44,"text3":55.74,"text4":66.74,"text5":272.50,"text6":336.50},
      {"code":20.5,"text1":25.04,"text2":28.54,"text3":55.90,"text4":66.99,"text5":273.66,"text6":338.66},
      {"code":20,"text1":25.14,"text2":28.64,"text3":56.07,"text4":67.24,"text5":274.83,"text6":340.83},
      {"code":19.5,"text1":25.24,"text2":28.74,"text3":56.24,"text4":67.49,"text5":276.00,"text6":343.00},
      {"code":19,"text1":25.34,"text2":28.84,"text3":56.40,"text4":67.74,"text5":277.33,"text6":345.33},
      {"code":18.5,"text1":25.44,"text2":28.94,"text3":56.57,"text4":67.99,"text5":278.66,"text6":347.66},
      {"code":18,"text1":25.54,"text2":29.04,"text3":56.74,"text4":68.24,"text5":280.00,"text6":350.00},
      {"code":17.5,"text1":25.65,"text2":29.15,"text3":56.90,"text4":68.54,"text5":281.50,"text6":352.56},
      {"code":17,"text1":25.76,"text2":29.26,"text3":57.07,"text4":68.84,"text5":283.00,"text6":355.13},
      {"code":16.5,"text1":25.88,"text2":29.38,"text3":57.24,"text4":69.14,"text5":284.50,"text6":357.70},
      {"code":16,"text1":26.00,"text2":29.50,"text3":57.50,"text4":69.44,"text5":286.00,"text6":360.50},
      {"code":15.5,"text1":26.12,"text2":29.62,"text3":57.76,"text4":69.74,"text5":287.50,"text6":363.30},
      {"code":15,"text1":26.24,"text2":29.74,"text3":58.02,"text4":70.04,"text5":289.00,"text6":366.10},
      {"code":14.5,"text1":26.40,"text2":29.90,"text3":58.28,"text4":70.37,"text5":290.70,"text6":369.16},
      {"code":14,"text1":26.57,"text2":30.07,"text3":58.55,"text4":70.70,"text5":292.40,"text6":372.23},
      {"code":13.5,"text1":26.74,"text2":30.24,"text3":58.82,"text4":71.04,"text5":294.10,"text6":375.30},
      {"code":13,"text1":26.90,"text2":30.40,"text3":59.09,"text4":71.40,"text5":296.00,"text6":378.76},
      {"code":12.5,"text1":27.07,"text2":30.57,"text3":59.36,"text4":71.77,"text5":297.90,"text6":382.23},
      {"code":12,"text1":27.24,"text2":30.74,"text3":59.63,"text4":72.14,"text5":299.80,"text6":385.70},
      {"code":11.5,"text1":27.40,"text2":30.90,"text3":59.90,"text4":72.60,"text5":302.00,"text6":389.63},
      {"code":11,"text1":27.57,"text2":31.07,"text3":60.17,"text4":73.07,"text5":304.20,"text6":393.56},
      {"code":10.5,"text1":27.74,"text2":31.24,"text3":60.44,"text4":73.54,"text5":306.40,"text6":397.50},
      {"code":10,"text1":27.90,"text2":31.40,"text3":60.77,"text4":74.04,"text5":308.90,"text6":402.03},
      {"code":9.5,"text1":28.07,"text2":31.57,"text3":61.10,"text4":74.54,"text5":311.40,"text6":406.56},
      {"code":9,"text1":28.24,"text2":31.74,"text3":61.44,"text4":75.04,"text5":313.90,"text6":411.10},
      {"code":8.5,"text1":28.44,"text2":31.94,"text3":61.84,"text4":75.64,"text5":316.86,"text6":416.43},
      {"code":8,"text1":28.64,"text2":32.14,"text3":62.24,"text4":76.24,"text5":319.83,"text6":421.76},
      {"code":7.5,"text1":28.84,"text2":32.34,"text3":62.64,"text4":76.84,"text5":322.80,"text6":427.10},
      {"code":7,"text1":29.17,"text2":32.67,"text3":63.17,"text4":77.57,"text5":326.43,"text6":433.66},
      {"code":6.5,"text1":29.50,"text2":33.00,"text3":63.70,"text4":78.30,"text5":330.06,"text6":440.23},
      {"code":6,"text1":29.84,"text2":33.34,"text3":64.24,"text4":79.04,"text5":333.70,"text6":446.80},
      {"code":5.5,"text1":30.17,"text2":33.67,"text3":64.90,"text4":79.97,"text5":338.40,"text6":455.23},
      {"code":5,"text1":30.50,"text2":34.00,"text3":65.57,"text4":80.90,"text5":343.10,"text6":463.66},
    ],
    TraceOther_list: [
      {"code":30,"text1":1.83,"text2":1.56,"text3":6.50,"text4":5.20,"text5":13.50,"text6":12.50,"text7":55.00,"text8":38.00},
      {"code":29.5,"text1":1.82,"text2":"-","text3":6.47,"text4":5.19,"text5":13.45,"text6":12.40,"text7":54.47,"text8":37.74},
      {"code":29,"text1":"-","text2":1.55,"text3":6.44,"text4":5.17,"text5":13.40,"text6":12.30,"text7":53.93,"text8":37.47},
      {"code":28.5,"text1":1.81,"text2":"-","text3":6.40,"text4":5.15,"text5":13.35,"text6":12.20,"text7":53.39,"text8":37.20},
      {"code":28,"text1":1.80,"text2":1.54,"text3":6.37,"text4":5.14,"text5":13.30,"text6":12.10,"text7":52.83,"text8":36.92},
      {"code":27.5,"text1":1.79,"text2":"-","text3":6.34,"text4":5.12,"text5":13.25,"text6":12.00,"text7":52.27,"text8":36.64},
      {"code":27,"text1":1.78,"text2":1.53,"text3":6.30,"text4":5.10,"text5":13.20,"text6":11.90,"text7":51.70,"text8":36.35},
      {"code":26.5,"text1":1.77,"text2":"-","text3":6.27,"text4":5.07,"text5":13.15,"text6":11.79,"text7":51.11,"text8":36.06},
      {"code":26,"text1":"-","text2":1.52,"text3":6.24,"text4":5.04,"text5":13.10,"text6":11.67,"text7":50.51,"text8":35.76},
      {"code":25.5,"text1":1.76,"text2":1.51,"text3":6.20,"text4":5.00,"text5":13.05,"text6":11.55,"text7":49.91,"text8":35.46},
      {"code":25,"text1":1.75,"text2":1.50,"text3":6.17,"text4":4.97,"text5":12.99,"text6":11.44,"text7":49.28,"text8":35.15},
      {"code":24.5,"text1":1.74,"text2":1.49,"text3":6.14,"text4":4.94,"text5":12.92,"text6":11.32,"text7":48.65,"text8":34.83},
      {"code":24,"text1":1.73,"text2":"-","text3":6.10,"text4":4.90,"text5":12.85,"text6":11.20,"text7":48.01,"text8":34.51},
      {"code":23.5,"text1":1.72,"text2":1.48,"text3":6.07,"text4":4.87,"text5":12.79,"text6":11.07,"text7":47.34,"text8":34.17},
      {"code":23,"text1":1.71,"text2":"-","text3":6.04,"text4":4.84,"text5":12.72,"text6":10.94,"text7":46.67,"text8":33.83},
      {"code":22.5,"text1":1.70,"text2":1.47,"text3":6.00,"text4":4.80,"text5":12.65,"text6":10.81,"text7":45.99,"text8":33.49},
      {"code":22,"text1":1.68,"text2":"-","text3":5.97,"text4":4.77,"text5":12.59,"text6":10.68,"text7":45.27,"text8":33.14},
      {"code":21.5,"text1":1.67,"text2":1.46,"text3":5.93,"text4":4.74,"text5":12.52,"text6":10.55,"text7":44.55,"text8":32.78},
      {"code":21,"text1":1.66,"text2":1.45,"text3":5.89,"text4":4.70,"text5":12.45,"text6":10.41,"text7":43.83,"text8":32.42},
      {"code":20.5,"text1":1.65,"text2":1.44,"text3":5.84,"text4":4.67,"text5":12.39,"text6":10.27,"text7":42.94,"text8":32.03},
      {"code":20,"text1":1.64,"text2":1.43,"text3":5.79,"text4":4.64,"text5":12.32,"text6":10.12,"text7":42.05,"text8":31.64},
      {"code":19.5,"text1":1.63,"text2":1.42,"text3":5.74,"text4":4.60,"text5":12.25,"text6":9.97,"text7":41.15,"text8":31.25},
      {"code":19,"text1":1.62,"text2":1.41,"text3":5.69,"text4":4.57,"text5":12.17,"text6":9.82,"text7":40.44,"text8":30.84},
      {"code":18.5,"text1":1.61,"text2":"-","text3":5.64,"text4":4.54,"text5":12.09,"text6":9.66,"text7":39.72,"text8":30.42},
      {"code":18,"text1":1.60,"text2":1.40,"text3":5.60,"text4":4.50,"text5":12.00,"text6":9.50,"text7":39.00,"text8":30.00},
      {"code":17.5,"text1":1.58,"text2":1.39,"text3":5.55,"text4":4.47,"text5":11.92,"text6":9.33,"text7":38.10,"text8":29.55},
      {"code":17,"text1":1.57,"text2":1.38,"text3":5.50,"text4":4.44,"text5":11.84,"text6":9.16,"text7":37.19,"text8":29.10},
      {"code":16.5,"text1":1.56,"text2":1.37,"text3":5.45,"text4":4.40,"text5":11.75,"text6":8.99,"text7":36.28,"text8":28.64},
      {"code":16,"text1":1.55,"text2":1.36,"text3":5.40,"text4":4.36,"text5":11.67,"text6":8.81,"text7":35.29,"text8":28.15},
      {"code":15.5,"text1":1.53,"text2":1.35,"text3":5.35,"text4":4.31,"text5":11.59,"text6":8.62,"text7":34.29,"text8":27.65},
      {"code":15,"text1":1.52,"text2":1.34,"text3":5.29,"text4":4.26,"text5":11.50,"text6":8.43,"text7":33.29,"text8":27.15},
      {"code":14.5,"text1":1.49,"text2":1.32,"text3":5.23,"text4":4.21,"text5":11.39,"text6":8.23,"text7":32.19,"text8":26.60},
      {"code":14,"text1":1.48,"text2":1.31,"text3":5.16,"text4":4.16,"text5":11.28,"text6":8.02,"text7":31.09,"text8":26.05},
      {"code":13.5,"text1":1.47,"text2":1.30,"text3":5.09,"text4":4.11,"text5":11.16,"text6":7.81,"text7":29.99,"text8":25.50},
      {"code":13,"text1":1.44,"text2":1.29,"text3":5.03,"text4":4.06,"text5":11.05,"text6":7.58,"text7":28.76,"text8":24.89},
      {"code":12.5,"text1":1.43,"text2":1.28,"text3":4.96,"text4":4.01,"text5":10.93,"text6":7.35,"text7":27.53,"text8":24.27},
      {"code":12,"text1":1.42,"text2":1.27,"text3":4.89,"text4":3.96,"text5":10.81,"text6":7.12,"text7":26.30,"text8":23.65},
      {"code":11.5,"text1":1.38,"text2":1.25,"text3":4.81,"text4":3.89,"text5":10.68,"text6":6.86,"text7":24.91,"text8":22.96},
      {"code":11,"text1":1.36,"text2":1.24,"text3":4.73,"text4":3.82,"text5":10.55,"text6":6.60,"text7":23.52,"text8":22.26},
      {"code":10.5,"text1":1.34,"text2":1.23,"text3":4.65,"text4":3.76,"text5":10.42,"text6":6.34,"text7":22.12,"text8":21.56},
      {"code":10,"text1":1.32,"text2":1.20,"text3":4.56,"text4":3.69,"text5":10.27,"text6":6.04,"text7":20.15,"text8":20.76},
      {"code":9.5,"text1":1.30,"text2":1.19,"text3":4.47,"text4":3.62,"text5":10.12,"text6":5.74,"text7":18.18,"text8":19.96},
      {"code":9,"text1":1.28,"text2":1.18,"text3":4.37,"text4":3.55,"text5":9.97,"text6":5.43,"text7":17.29,"text8":19.15},
      {"code":8.5,"text1":1.24,"text2":1.15,"text3":4.27,"text4":3.47,"text5":9.79,"text6":5.08,"text7":15.39,"text8":18.20},
      {"code":8,"text1":1.22,"text2":1.14,"text3":4.17,"text4":3.39,"text5":9.61,"text6":4.72,"text7":13.49,"text8":17.25},
      {"code":7.5,"text1":1.20,"text2":1.11,"text3":4.06,"text4":3.30,"text5":9.43,"text6":4.36,"text7":11.58,"text8":16.29},
      {"code":7,"text1":1.14,"text2":1.09,"text3":3.93,"text4":3.20,"text5":9.21,"text6":3.93,"text7":9.26,"text8":15.13},
      {"code":6.5,"text1":1.12,"text2":1.06,"text3":3.80,"text4":3.10,"text5":8.99,"text6":3.49,"text7":6.93,"text8":13.97},
      {"code":6,"text1":1.10,"text2":1.03,"text3":3.66,"text4":2.99,"text5":8.77,"text6":3.05,"text7":4.60,"text8":12.80},
      {"code":5.5,"text1":1.06,"text2":1.01,"text3":3.50,"text4":2.86,"text5":8.49,"text6":2.49,"text7":"-","text8":11.30},
      {"code":5,"text1":1.01,"text2":0.99,"text3":3.33,"text4":2.73,"text5":8.21,"text6":1.93,"text7":"-","text8":9.80},

      


    ],

  },


get_input: function(e){
  this.setData({
    Performance: e.detail.value
  })
  var temp=this.data.Performance;
  console.log("e  is :",e)
},
// #### 计算200米成绩
Performance200mMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceRun_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp < 18 ) {
      score = "看一道闪电！";
      break
    }
    else if ( temp <= D_list1[i].text1) {
      score = D_list1[i].code;
      break
    }
    else {
      score = "潜力无限"
    }
  }
  
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},

Performance200mWoMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceRun_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp < 20 ) {
      score = "看一道闪电！";
      break
    }
    else if ( temp <= D_list1[i].text2) {
      score = D_list1[i].code;
      break
    }
    else {
      score = "潜力无限"
    }
  }
  
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},


//  计算 400米成绩

Performance400mMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceRun_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp < 40 ) {
      score = "看一道闪电！";
      break
    }
    else if ( temp <= D_list1[i].text3) {
      score = D_list1[i].code;
      break
    }
    else {
      score = "潜力无限"
    }
  }
  
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},

Performance400mWoMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceRun_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp < 50 ) {
      score = "看一道闪电！";
      break
    }
    else if ( temp <= D_list1[i].text4) {
      score = D_list1[i].code;
      break
    }
    else {
      score = "潜力无限"
    }
  }
  
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},
// 计算 1500米
Performance1500mMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceRun_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp < 200 ) {
      score = "看一道闪电！";
      break
    }
    else if ( temp <= D_list1[i].text5) {
      score = D_list1[i].code;
      break
    }
    else {
      score = "潜力无限"
    }
  }
  
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},

Performance1500mWoMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceRun_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp < 250 ) {
      score = "看一道闪电！";
      break
    }
    else if ( temp <= D_list1[i].text6) {
      score = D_list1[i].code;
      break
    }
    else {
      score = "潜力无限"
    }
  }
  
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},


//  跳高


PerformanceHighMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceOther_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp > 2.5 ) {
      score = "ennn  我错过了什么"
    }
    else if (D_list1[i].text1 == "-"){
      console.log(D_list1[i].text1 == "-")
      continue
    }
    else if ( temp >= D_list1[i].text1 ) {
      
      console.log(temp,D_list1[i].text1,temp >= D_list1[i].text1)
      score = D_list1[i].code;
      break
    }
    else if ( temp < 1) {
      score = "加油！";
      break

    }
    else {
      // break
    }
  }
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},

PerformanceHighWoMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceOther_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp > 3 ) {
      score = "ennn  我错过了什么"
    }
    else if (D_list1[i].text2 == "-"){
      console.log(D_list1[i].text2 == "-")
      continue
    }
    else if ( temp >= D_list1[i].text2 ) {
      score = D_list1[i].code;
      break
    }
    else if ( temp < 1) {
      score = "加油！";
      break

    }
    else {
      // break
    }
  }
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},


//  跳远


PerformanceLongMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceOther_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp > 10 ) {
      score = "ennn  我错过了什么"
    }
    else if (D_list1[i].text3 == "-"){
      console.log(D_list1[i].text3 == "-")
      continue
    }
    else if ( temp >= D_list1[i].text3 ) {
      
      console.log(temp,D_list1[i].text3,temp >= D_list1[i].text3)
      score = D_list1[i].code;
      break
    }
    else if ( temp < 1) {
      score = "加油！";
      break

    }
    else {
      // break
    }
  }
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},

PerformanceLongWoMan: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceOther_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp > 10 ) {
      score = "ennn  我错过了什么"
    }
    else if (D_list1[i].text4 == "-"){
      console.log(D_list1[i].text4 == "-")
      continue
    }
    else if ( temp >= D_list1[i].text4 ) {
      score = D_list1[i].code;
      break
    }
    else if ( temp < 1) {
      score = "加油！";
      break

    }
    else {
      // break
    }
  }
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},


//  三级跳

PerformanceHigh3Man: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceOther_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp > 20 ) {
      score = "ennn  我错过了什么"
    }
    else if (D_list1[i].text5 == "-"){
      continue
    }
    else if ( temp >= D_list1[i].text5 ) {
      
      score = D_list1[i].code;
      break
    }
    else if ( temp < 1) {
      score = "加油！";
      break

    }
    else {
      // break
    }
  }
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},


//  铅球


PerformanceShutPut: function (e) {
  var temp=this.data.Performance;
  var D_list1 = this.data.TraceOther_list;
  var score = [];
  for (var i = 0; i < D_list1.length; i++) {
    if ( temp > 20 ) {
      score = "ennn  我错过了什么"
    }
    else if (D_list1[i].text6 == "-"){
      continue
    }
    else if ( temp >= D_list1[i].text6 ) {
      
      score = D_list1[i].code;
      break
    }
    else if ( temp < 1) {
      score = "加油！";
      break

    }
    else {
      // break
    }
  }
  console.log("成绩:",temp,"分数:",score);
  this.setData({
    score_data: score
  })
},

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {


  },


  // 标枪

  PerformanceJavelinMan: function (e) {
    var temp=this.data.Performance;
    var D_list1 = this.data.TraceOther_list;
    var score = [];
    for (var i = 0; i < D_list1.length; i++) {
      if ( temp > 70 ) {
        score = "ennn  我错过了什么"
      }
      else if (D_list1[i].text7 == "-"){
        continue
      }
      else if ( temp >= D_list1[i].text7 ) {
        score = D_list1[i].code;
        break
      }
      else if ( temp < 1) {
        score = "加油！";
        break
  
      }
      else {
        // break
      }
    }
    console.log("成绩:",temp,"分数:",score);
    this.setData({
      score_data: score
    })
  },
  
  PerformanceJavelinWoMan: function (e) {
    var temp=this.data.Performance;
    var D_list1 = this.data.TraceOther_list;
    var score = [];
    for (var i = 0; i < D_list1.length; i++) {
      if ( temp > 70 ) {
        score = "ennn  我错过了什么"
      }
      else if (D_list1[i].text8 == "-"){
        continue
      }
      else if ( temp >= D_list1[i].text8 ) {
        score = D_list1[i].code;
        break
      }
      else if ( temp < 1) {
        score = "加油！";
        break
  
      }
      else {
        // break
      }
    }
    console.log("成绩:",temp,"分数:",score);
    this.setData({
      score_data: score
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})